<%-- 
    Document   : JspHeadIndex
    Created on : 18-jun-2013, 18:15:02
    Author     : Javier Aviles Cruz
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%
    String contextPath = request.getContextPath();
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Sistema de Nómina y Control de Acceso Biométrico </title>


        <link rel="stylesheet" href="<%=contextPath%>/Css/css.css" type="text/css"  />
        
        <link rel="stylesheet" href="<%=contextPath%>/Css/styleMenu.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="<%=contextPath%>/Css/AlertStyle/StyleAlert.css" type="text/css"  />
        <script type="text/javascript" src="<%=contextPath%>/JS/JQuery/jquery.min.js"></script>
        <script type="text/javascript" src="<%=contextPath%>/JS/JQuery/sexyalertbox.v1.2.jquery.js"></script>
        <script type="text/javascript" src="<%=contextPath%>/JS/JQuery/jquery.easing.1.3.js"></script>

        <script language="javascript" type="text/javascript">

            function valUserPass()
            {
                var objForm = document.forms["loginform"];
                //alert("valida");
                if (objForm.user.value == "") {
                    Sexy.alert("Por favor, escriba el nombre de usuario");
                    return false;
                } else if (objForm.password.value == "") {
                    Sexy.alert("Por favor, escriba su contraseña");
                    return false;
                }

                return true;
            }

            function showMesage() {
            <%
                String messageType = (String) request.getAttribute("messageType") != null ? request.getAttribute("messageType").toString() : "";
                String message = (String) request.getAttribute("message") != null ? request.getAttribute("message").toString() : "";

                try {
                    if (messageType != "" && message != "") {%>
                Sexy.<%=messageType%>("<%=message%>");
            <%
                request.removeAttribute("message");
            }
        } catch (NullPointerException npe) {
            npe.printStackTrace();
        } finally {
        }
            %>
            }

        </script>

    </head>
    <body class="login" onload="javascript: showMesage();">